#ifndef __DEFS
#define __DEFS

#define OK 0
#define ERR	1

#define uint unsigned long
#define ushort unsigned short
#define byte unsigned char
#define bytep byte*
#define sbyte char
#define sbytep char*

#define SAMPLE_RATE 22050									//Sample rate which is used 22050

#define MAX_SIGNAL_DURATION 5								//Maximum signal duration (seconds)
#define MAX_SIGNAL_LENGTH SAMPLE_RATE*MAX_SIGNAL_DURATION	//Maximum descrete values in signal

#define FURIE_MEMBERS_MAX 4096								//Maximum quantity of Furies members in one hash
#define HALF_FURIE_MEMBERS_MAX FURIE_MEMBERS_MAX >> 1
#define LOG_FURIE_MEMBERS_MAX 10							//Binary log from FURIE_MEMBERS_MAX
#define MAX_FREQUENCY FURIE_MEMBERS_MAX >> 2					//Upper frequency barrier of analyze
#define FURIE_MEMBERS_COUNT(x) MAX_FREQUENCY*x/SAMPLE_RATE  //Quantity of Furies members based on upper frequency barrier

#define WINDOW_COUNT 20										//Quantity of windows on the mel-scale 
#define DCT_MEMBERS 12										//Quantity of DCT members
 
#define true 1
#define false 0

#endif // __COMMON
